package com.turbo.cloud.contract.web.webservice;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 合同模板填充任务表 前端控制器
 * </p>
 *
 * @author zhangluning
 * @since 2023-11-23
 */
@Slf4j
@RequiredArgsConstructor
@RestController
public class CtFillTaskController {
    //
    //
    //@Autowired
    //private CtFillTaskService ctFillTaskService;
    //
    //@GetMapping(value = "/")
    //public ResponseEntity<Page<CtFillTask>> list(@RequestParam(required = false) Integer current, @RequestParam(required = false) Integer pageSize) {
    //    if (current == null) {
    //        current = 1;
    //    }
    //    if (pageSize == null) {
    //        pageSize = 10;
    //    }
    //    Page<CtFillTask> aPage = ctFillTaskService.page(new Page<>(current, pageSize));
    //    return new ResponseEntity<>(aPage, HttpStatus.OK);
    //}
    //
    //@GetMapping(value = "/{id}")
    //public ResponseEntity<CtFillTask> getById(@PathVariable("id") String id) {
    //    return new ResponseEntity<>(ctFillTaskService.getById(id), HttpStatus.OK);
    //}
    //
    //@PostMapping(value = "/create")
    //public ResponseEntity<Object> create(@RequestBody CtFillTask params) {
    //    ctFillTaskService.save(params);
    //    return new ResponseEntity<>("created successfully", HttpStatus.OK);
    //}
    //
    //@PostMapping(value = "/delete/{id}")
    //public ResponseEntity<Object> delete(@PathVariable("id") String id) {
    //    ctFillTaskService.removeById(id);
    //    return new ResponseEntity<>("deleted successfully", HttpStatus.OK);
    //}
    //
    //@PostMapping(value = "/update")
    //public ResponseEntity<Object> update(@RequestBody CtFillTask params) {
    //    ctFillTaskService.updateById(params);
    //    return new ResponseEntity<>("updated successfully", HttpStatus.OK);
    //}
}
